package com.netbliz.ftpmanagment.service;

import java.sql.Timestamp;
import java.util.List;

import com.netbliz.common.service.BaseService;
import com.netbliz.ftpmanagment.dao.StatFileDao;
import com.netbliz.ftpmanagment.dao.StatIpDao;
import com.netbliz.ftpmanagment.dao.StatUserDao;
import com.netbliz.ftpmanagment.pojo.StatFile;
import com.netbliz.ftpmanagment.pojo.StatIp;

public class StatService extends BaseService{
	private StatUserDao statUserDao;
	private StatFileDao statFileDao;
	private StatIpDao statIpDao;

	public void setStatUserDao(StatUserDao statUserDao) {
		this.statUserDao = statUserDao;
	}

	public StatUserDao getStatUserDao() {
		return statUserDao;
	}
	
	public StatFileDao getStatFileDao() {
		return statFileDao;
	}

	public void setStatFileDao(StatFileDao statFileDao) {
		this.statFileDao = statFileDao;
	}

	public void setStatIpDao(StatIpDao statIpDao) {
		this.statIpDao = statIpDao;
	}

	public StatIpDao getStatIpDao() {
		return statIpDao;
	}

	public void batchInsertStatFile(List<StatFile> statFileList, Timestamp startTime, Timestamp endTime) {
		statFileDao.batchInsert(statFileList, startTime, endTime);
	}
	
	public void batchInsertStatIp(List<StatIp> statIpList, Timestamp startTime, Timestamp endTime) {
		statIpDao.batchInsert(statIpList, startTime, endTime);
	}

}
